import 'package:flutter/cupertino.dart';

class Constant {
  static const int MIN_CLICK_DELAY_TIME=100;
  // static String host_test = 'http://test.qsyservice.cn:31246';
  // static String host_sprocomm = 'http://cxzn.sprocomm.com';
  // static String enterpriseId_test = 'f982b9387bc74aa482a9705d8587db8a';
  // static String enterpriseId_sprocomm = '8d0857ca8f9a49759b52201bda2376b4';
  //  String server_test = "182.138.101.48"; //50008
  //  String server_sprocomm = "139.196.180.215"; //1813

  static String host = 'http://cxzn.sprocomm.com';
  static String enterpriseId = '8d0857ca8f9a49759b52201bda2376b4';
  static String server = "139.196.180.215";
  static int port = 1813;


  //:1813

  static Color appbarColor = Color(0xffF5FFFF);
  static Color backgroundColor = Color(0xffF5FFFF);

  static const String FAMILY_REMOTE_CONTROL_CLIENT_ID = 'ANDROID-GLOBAL@';
  static const String FAMILY_REMOTE_CONTROL_TOPIC =
      'sprocomm/controller/client';

  //------------------------------------------RemoteControl-------------------------------------

  // sendRemoteControlMsg向老人機發送連接申請后, 收到"CreateRemoteControlConnectionAck"
  // 消息时控制端向被控端发送截屏消息（一秒一次）
  static const String REMOTE_CONTROL_CREATE_CONNECTION =
      "CreateRemoteControlConnectionAck";

  static const String REMOTE_CONTROL_CONNECTION_ABILITIES =
      "dcapsrc_capturescreen";


  static const String REMOTE_CONTROL_CAPTURE_SCREEN  =
      "CaptureScreenFinished";

  static const String REMOTE_CONTROL_TOUCH_SCREEN_ACK  =
  "TouchScreenAck";


  static const String REMOTE_CONTROL_CONTROLLER  = "controller";
  //发送消息告诉对方已经同意
  static const String REMOTE_CONTROL_CONTROLLER_OK  = "controllerOk";
  //发消息告诉对方自己不同意
  static const String REMOTE_CONTROL_CONTROLLER_DISAGREE  = "controllerCancel";
  //告诉对方自己取消
  static const String REMOTE_CONTROL_CONTROLLER_CANCEL  = "myselfCancel";
  //对方自己取消
  static const String REMOTE_CONTROL_OLD_CANCEL  = "controllerMyselfCancel";
  //被踢下线
  static const String DEVICE_KICK_OFF  = "DeviceKickOff";

}
